home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
015
/
pset.arc
/
PSET.LST
< prev
next >
Wrap
File List
|
1986-04-24
|
5KB
|
97 lines
Microsoft (R) Macro Assembler Version 4.00 4/24/86 17:31:56
Page 1-1
1 ;PSET - Program to Send Printer Control
Codes Entered on
2 ; the command line to the default
printer (lpt1:)
3 0000 CSEG segment para public 'code'
4 assume cs:CSEG, ds:CSEG, es:CSE
G, ss:NOTHING
5 0100 org 100h
;.com format
6 0100 PSET proc
7 0100 BE 0080 BEGIN: mov si,80h
8 0103 FC cld
9 0104 AC lodsb
10 0105 98 cbw
11 0106 8B C8 mov cx,ax
12 0108 49 dec cx
13 0109 03 F1 add si,cx
14 010B FD std
15 010C BA 1234 mov dx,1234h
16 010F E8 013E R call MANAGER
17 0112 AC LOAD: lodsb
18 0113 3C 20 cmp al,20h
19 0115 75 05 jne MULT
20 0117 E8 013E R call MANAGER
21 011A E2 F6 loop LOAD
22 011C 2C 30 MULT: sub al,30h
23 011E F6 E3 mul bl
24 0120 02 D0 add dl,al
25 0122 8A C3 mov al,bl
26 0124 B3 0A mov bl,0ah
27 0126 F6 E3 mul bl
28 0128 8A D8 mov bl,al
29 012A E2 E6 LOOP: loop LOAD
30 012C E8 013E R call MANAGER
31 012F 5A CLEAR: pop dx
32 0130 81 FA 1234 cmp dx,1234h
33 0134 74 06 je END
34 0136 B4 05 mov ah,05h
35 0138 CD 21 int 21h
36 013A EB F3 jmp CLEAR
37 013C CD 20 END: int 20h
38 PSET endp
39 013E MANAGER proc
40 013E 5B pop bx
41 013F 52 push dx
42 0140 53 push bx
43 0141 B3 01 mov bl,1
44 0143 33 D2 xor dx,dx
45 0145 C3 ret
46 MANAGER endp
47 0146 CSEG ends
48 end BEGIN
Microsoft (R) Macro Assembler Version 4.00 4/24/86 17:31:56
Symbols-1
Segments and Groups:
N a m e Size Align Combine Class
CSEG . . . . . . . . . . . . . . 0146 PARA PUBLIC 'CODE'
Symbols:
N a m e Type Value Attr
BEGIN . . . . . . . . . . . . . L NEAR 0100 CSEG
CLEAR . . . . . . . . . . . . . L NEAR 012F CSEG
END . . . . . . . . . . . . . . L NEAR 013C CSEG
LOAD . . . . . . . . . . . . . . L NEAR 0112 CSEG
LOOP . . . . . . . . . . . . . . L NEAR 012A CSEG
MANAGER . . . . . . . . . . . . N PROC 013E CSEG Length = 0008
MULT . . . . . . . . . . . . . . L NEAR 011C CSEG
PSET . . . . . . . . . . . . . . N PROC 0100 CSEG Length = 003E
48 Source Lines
48 Total Lines
31 Symbols
49954 Bytes symbol space free
0 Warning Errors
0 Severe Errors